{$CLEO .cs}
Alloc($PLAYER_CHAR, 2)
Alloc($PLAYER_ACTOR, 3)

script_name 'EPSILON'

:EPSILON_11
wait 0
if 
  Player.IsPlaying($PLAYER_CHAR)
goto_if_false @EPSILON_11
if 
  $flag_player_on_mission == 0
goto_if_false @EPSILON_11
if 
  Char.LocateAnyMeans3D($PLAYER_ACTOR, -1055.508, -1205.378, 128.9953, 120.5, 120.5, 50.5, False)
goto_if_false @EPSILON_11
if and
30@, 31@ = Clock.GetTimeOfDay()
  30@ >= 3
  23 > 30@
goto_if_false @EPSILON_137
goto @EPSILON_11

:EPSILON_137
wait 0
Streaming.RequestModel(73)
Streaming.RequestModel(26)
Streaming.RequestModel(177)
Streaming.RequestModel(33)
Streaming.RequestModel(167)
Streaming.RequestModel(346)
Streaming.RequestModel(336)
Streaming.RequestModel(422)
Streaming.RequestModel(330)
Streaming.RequestModel(333)
Streaming.RequestModel(335)
Streaming.RequestModel(350)
Streaming.LoadSpecialCharacter(2, 'EPEPSI')
Streaming.LoadSpecialCharacter(3, 'EPFIRE')
Streaming.LoadSpecialCharacter(6, 'EPWIND')
Streaming.LoadSpecialCharacter(7, 'EPWATER')
Streaming.LoadSpecialCharacter(8, 'EPEARTH')
Streaming.LoadSpecialCharacter(9, 'EPKIFF')
Streaming.RequestAnimation("BSKTBALL")
Streaming.LoadAllModelsNow
if 
  Streaming.HasSpecialCharacterLoaded(2)
wait 0
0@ = Char.Create(PedType.Mission1, 291, -1060.87, -1205.525, 129.4633)
Char.SetHeading(0@, 271.1698)
Char.SetHealth(0@, 5000)
Char.AddArmor(0@, 1000)
Char.SetSuffersCriticalHits(0@, False)
Char.SetDrownsInWater(0@, False)
Char.SetUsesUpperbodyDamageAnimsOnly(0@, True)
Char.SetDecisionMaker(0@, 32)
Char.GiveWeapon(0@, WeaponType.GolfClub, 1)
Char.SetVisible(0@, False)
Char.SetMoney(0@, 0)
Char.SetProofs(0@, True, True, True, True, True)
1@ = Char.Create(PedType.Mission1, 26, -1054.135, -1205.767, 128.9564)
Char.SetHeading(1@, 90.0479)
Char.SetHealth(1@, 500)
Char.AddArmor(1@, 500)
Char.SetSuffersCriticalHits(1@, True)
Char.SetDrownsInWater(1@, True)
Char.SetUsesUpperbodyDamageAnimsOnly(1@, True)
Char.SetDecisionMaker(1@, 32)
Char.SetMoney(1@, 100)
Char.SetProofs(1@, True, True, True, True, True)
2@ = Char.Create(PedType.Mission1, 73, -1056.82, -1209.707, 129.0774)
Char.SetHeading(2@, 90.0479)
Char.SetHealth(2@, 500)
Char.AddArmor(2@, 500)
Char.SetSuffersCriticalHits(2@, True)
Char.SetDrownsInWater(2@, True)
Char.SetUsesUpperbodyDamageAnimsOnly(2@, True)
Char.SetDecisionMaker(2@, 32)
Char.SetMoney(2@, 200)
Char.SetProofs(2@, True, True, True, True, True)
3@ = Char.Create(PedType.Mission1, 26, -1057.182, -1202.044, 129.0924)
Char.SetHeading(3@, 90.0479)
Char.SetHealth(3@, 500)
Char.AddArmor(3@, 500)
Char.SetSuffersCriticalHits(3@, True)
Char.SetDrownsInWater(3@, True)
Char.SetUsesUpperbodyDamageAnimsOnly(3@, True)
Char.SetDecisionMaker(3@, 32)
Char.SetMoney(3@, 300)
Char.SetProofs(3@, True, True, True, True, True)
4@ = Char.Create(PedType.Mission1, 177, -1051.407, -1205.243, 128.9406)
Char.SetHeading(4@, 90.0479)
Char.SetHealth(4@, 500)
Char.AddArmor(4@, 500)
Char.SetSuffersCriticalHits(4@, True)
Char.SetDrownsInWater(4@, True)
Char.SetUsesUpperbodyDamageAnimsOnly(4@, True)
Char.SetDecisionMaker(4@, 32)
Char.GiveWeapon(4@, WeaponType.BaseballBat, 1)
Char.SetMoney(4@, 400)
Char.SetProofs(4@, True, True, True, True, True)
5@ = Char.Create(PedType.Mission1, 33, -1050.57, -1199.058, 128.9973)
Char.SetHeading(5@, 90.0479)
Char.SetHealth(5@, 500)
Char.AddArmor(5@, 500)
Char.SetSuffersCriticalHits(5@, True)
Char.SetDrownsInWater(5@, True)
Char.SetUsesUpperbodyDamageAnimsOnly(5@, True)
Char.GiveWeapon(5@, WeaponType.Knife, 1)
Char.SetDecisionMaker(5@, 32)
Char.SetMoney(5@, 500)
Char.SetProofs(5@, True, True, True, True, True)
6@ = Char.Create(PedType.Mission1, 177, -1060.24, -1203.289, 129.2187)
Char.SetHeading(6@, 175.2626)
Char.SetHealth(6@, 500)
Char.AddArmor(6@, 500)
Char.SetSuffersCriticalHits(6@, True)
Char.SetDrownsInWater(6@, True)
Char.SetUsesUpperbodyDamageAnimsOnly(6@, True)
Char.GiveWeapon(6@, WeaponType.Pistol, 1)
Char.SetDecisionMaker(6@, 32)
Char.SetMoney(6@, 600)
Char.SetProofs(6@, True, True, True, True, True)
7@ = Char.Create(PedType.Mission1, 167, -1058.429, -1212.626, 129.2187)
Char.SetHeading(7@, 23.3072)
Char.SetHealth(7@, 500)
Char.AddArmor(7@, 500)
Char.SetSuffersCriticalHits(7@, True)
Char.SetDrownsInWater(7@, True)
Char.SetUsesUpperbodyDamageAnimsOnly(7@, True)
Char.SetDecisionMaker(7@, 32)
Char.SetMoney(7@, 700)
Char.SetProofs(7@, True, True, True, True, True)
30@ = CarGenerator.Create(-1056.951, -1195.518, 129.1355, 92.3754, 422, 3, 3, 3, 1, 0, 0, 10000)
CarGenerator.Switch(30@, 101)
Task.PlayAnim(1@, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
Task.PlayAnim(2@, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
Task.PlayAnim(3@, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
Task.PlayAnim(4@, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
Task.PlayAnim(5@, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
Task.PlayAnim(6@, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
Task.PlayAnim(7@, "IDLE_CHAT", "PED", 4.0, True, False, False, False, -1)
wait 5000
Hud.SwitchWidescreen(True)
Pad.SetPlayerFireButton($PLAYER_CHAR, False)
Text.Print('EPS0', 5000, 1)
wait 5200
Text.Print('EPS1', 3000, 1)
wait 3400
Text.Print('EPS2', 5000, 1)
wait 5200
Text.Print('EPS3', 4000, 1)
wait 4200
Text.Print('EPS4', 5000, 1)
wait 5200
Text.Print('EPS5', 4000, 1)
wait 4200
Text.Print('EPS6', 5000, 1)
wait 5200
Text.Print('EPS7', 4000, 1)
wait 4200
Text.Print('EPS8', 5000, 1)
wait 5200
Text.Print('EPS9', 4000, 1)
wait 4200
Text.Print('EPS10', 5000, 1)
wait 5200
Text.Print('EPS11', 5000, 1)
wait 5200
Text.Print('EPS12', 5000, 1)
wait 5200
Text.Print('EPS13', 5000, 1)
Hud.SwitchWidescreen(False)
wait 5000
Pad.SetPlayerFireButton($PLAYER_CHAR, True)
Char.SetProofs(1@, False, False, False, False, False)
Char.SetProofs(2@, False, False, False, False, False)
Char.SetProofs(3@, False, False, False, False, False)
Char.SetProofs(4@, False, False, False, False, False)
Char.SetProofs(5@, False, False, False, False, False)
Char.SetProofs(6@, False, False, False, False, False)
Char.SetProofs(7@, False, False, False, False, False)
Task.KillCharOnFoot(1@, $PLAYER_ACTOR)
Task.KillCharOnFoot(2@, $PLAYER_ACTOR)
Task.KillCharOnFoot(3@, $PLAYER_ACTOR)
Task.KillCharOnFoot(4@, $PLAYER_ACTOR)
Task.KillCharOnFoot(5@, $PLAYER_ACTOR)
Task.KillCharOnFoot(6@, $PLAYER_ACTOR)
Task.KillCharOnFoot(7@, $PLAYER_ACTOR)

:EPSILON_1939
wait 0
if and
  Char.IsDead(1@)
  Char.IsDead(2@)
  Char.IsDead(3@)
  Char.IsDead(4@)
  Char.IsDead(5@)
  Char.IsDead(6@)
  Char.IsDead(7@)
  Char.IsDead(9@)
goto_if_false @EPSILON_2089
wait 4000
Text.Print('EPS14', 5000, 1)
Task.PlayAnimNonInterruptable(0@, "FUCKU", "PED", 4.0, False, False, False, False, -1)
Char.SetVisible(0@, True)
wait 4000
Task.KillCharOnFoot(0@, $PLAYER_ACTOR)
Char.SetProofs(0@, False, False, False, False, False)
goto @EPSILON_2096

:EPSILON_2089
goto @EPSILON_1939

:EPSILON_2096
wait 0
if 
  Player.IsPlaying($PLAYER_CHAR)
goto_if_false @EPSILON_2096
11@ = Char.GetHealth(0@)
wait 0
if 
  11@ < 500
goto_if_false @EPSILON_2096
wait 0
Char.SetHealth(0@, 10000)
Task.PlayAnimNonInterruptable(0@, "BBALL_DEF_LOOP", "BSKTBALL", 4.0, True, False, False, True, -1)
10@ = Particle.CreateOnCharWithDirection("CAMFLASH", 0@, 0.7, 0.0, 0, 0.0, 180, 0.0, False)
Particle.AttachToCharBone(10@, 0@, PedBone.Pelvis1)
Particle.Play(10@)
11@ = Particle.CreateOnCharWithDirection("FLAME", 0@, 0.7, 0.0, 0, 0.0, 180, 0.0, False)
Particle.AttachToCharBone(11@, 0@, PedBone.Pelvis1)
Particle.Play(11@)
Char.SetProofs(0@, False, True, False, True, True)
wait 1000
Text.Print('EPS15', 5000, 1)
wait 4000
Char.SetShootRate(0@, 100)
Task.KillCharOnFoot(0@, $PLAYER_ACTOR)

:EPSILON_2378
wait 0
if 
  Char.IsDead(0@)
goto_if_false @EPSILON_3542
Particle.Kill(11@)
wait 5000
Task.UseMobilePhone($PLAYER_ACTOR, True)
wait 2000
Text.Print('ELM1', 5000, 1)
wait 5200
Text.Print('ELM2', 3000, 1)
wait 3400
Text.Print('ELM3', 2500, 1)
wait 2000
Task.UseMobilePhone($PLAYER_ACTOR, False)
wait 9500
20@ = Char.Create(PedType.Gang3, 292, -1052.33, -1190.911, 129.0082)
Char.SetHeading(20@, 181.6304)
Char.SetHealth(20@, 3000)
Char.SetSuffersCriticalHits(20@, False)
Char.SetDrownsInWater(20@, False)
Char.SetUsesUpperbodyDamageAnimsOnly(20@, True)
Char.SetDecisionMaker(20@, 32)
Char.GiveMeleeAttack(20@, FightStyle.Default, FightMoves.All)
Char.SetOnlyDamagedByPlayer(20@, False)
Char.SetMoney(20@, 0)
Char.SetProofs(20@, False, True, True, False, True)
22@ = Char.Create(PedType.Gang3, 295, -1050.33, -1190.911, 129.0082)
Char.SetHeading(22@, 181.6304)
Char.SetHealth(22@, 800)
Char.SetSuffersCriticalHits(22@, False)
Char.SetDrownsInWater(22@, False)
Char.SetUsesUpperbodyDamageAnimsOnly(22@, True)
Char.SetDecisionMaker(22@, 32)
Char.SetOnlyDamagedByPlayer(22@, False)
Char.GiveMeleeAttack(22@, FightStyle.KungFu, FightMoves.All)
Char.SetMoney(22@, 0)
Char.SetProofs(22@, True, True, False, False, True)
24@ = Char.Create(PedType.CivMale, 296, -1048.33, -1190.911, 129.0082)
Char.SetHeading(24@, 181.6304)
Char.SetHealth(24@, 1500)
Char.SetSuffersCriticalHits(24@, False)
Char.SetDrownsInWater(24@, False)
Char.SetUsesUpperbodyDamageAnimsOnly(24@, True)
Char.SetDecisionMaker(24@, 32)
Char.SetOnlyDamagedByPlayer(24@, True)
Char.GiveMeleeAttack(24@, FightStyle.Boxeo, FightMoves.All)
Char.SetMoney(24@, 0)
Char.SetProofs(24@, True, True, True, False, False)
26@ = Char.Create(PedType.Gang3, 297, -1046.33, -1190.911, 129.0082)
Char.SetHeading(26@, 181.6304)
Char.SetHealth(26@, 2500)
Char.SetSuffersCriticalHits(26@, False)
Char.SetDrownsInWater(26@, False)
Char.SetUsesUpperbodyDamageAnimsOnly(26@, True)
Char.SetOnlyDamagedByPlayer(26@, False)
Char.SetDecisionMaker(26@, 32)
Char.GiveMeleeAttack(26@, FightStyle.KickBoxing, FightMoves.All)
Char.SetMoney(26@, 0)
Char.SetProofs(26@, False, False, True, True, True)
wait 2000
Text.Print('ELM4', 2000, 1)
wait 0
Task.PlayAnimNonInterruptable(20@, "BBALL_DEF_LOOP", "BSKTBALL", 4.0, True, False, False, True, -1)
21@ = Particle.CreateOnCharWithDirection("FLAMETHROWER", 20@, 0.7, 0.0, 0, 0.0, 180, 0.0, False)
Particle.AttachToCharBone(21@, 20@, PedBone.Pelvis1)
Particle.Play(21@)
wait 2000
Text.Print('ELM5', 2000, 1)
wait 0
Task.PlayAnimNonInterruptable(22@, "BBALL_DEF_LOOP", "BSKTBALL", 4.0, True, False, False, True, -1)
23@ = Particle.CreateOnCharWithDirection("PRT_COLLISIONSMOKE", 22@, 0.7, 0.0, 0, 0.0, 180, 0.0, False)
Particle.AttachToCharBone(23@, 22@, PedBone.Pelvis1)
Particle.Play(23@)
wait 2000
Text.Print('ELM6', 2000, 1)
wait 0
Task.PlayAnimNonInterruptable(24@, "BBALL_DEF_LOOP", "BSKTBALL", 4.0, True, False, False, True, -1)
25@ = Particle.CreateOnCharWithDirection("WATER_SPEED", 24@, 0.7, 0.0, 0, 0.0, 180, 0.0, False)
Particle.AttachToCharBone(25@, 24@, PedBone.Pelvis1)
Particle.Play(25@)
wait 2000
Text.Print('ELM7', 2000, 1)
wait 0
Task.PlayAnimNonInterruptable(26@, "BBALL_DEF_LOOP", "BSKTBALL", 4.0, True, False, False, True, -1)
27@ = Particle.CreateOnCharWithDirection("PRT_WHEELDIRT", 26@, 0.7, 0.0, 0, 0.0, 180, 0.0, False)
Particle.AttachToCharBone(27@, 26@, PedBone.Pelvis1)
Particle.Play(27@)
wait 2000
Text.Print('ELM8', 2000, 1)
wait 3000
Task.KillCharOnFoot(20@, $PLAYER_ACTOR)
Task.KillCharOnFoot(22@, $PLAYER_ACTOR)
Task.KillCharOnFoot(24@, $PLAYER_ACTOR)
Task.KillCharOnFoot(26@, $PLAYER_ACTOR)
goto @EPSILON_3549

:EPSILON_3542
goto @EPSILON_2378

:EPSILON_3549
wait 0
if and
  Char.IsDead(20@)
  Char.IsDead(22@)
  Char.IsDead(24@)
  Char.IsDead(26@)
goto_if_false @EPSILON_4205
Weather.ForceNow(WeatherType.ExtraColours1)
Particle.Kill(21@)
Particle.Kill(23@)
Particle.Kill(25@)
Particle.Kill(27@)
$pickup_weapon = Pickup.CreateWithAmmo(339, PickupType.Once, 1, -1068.98, -1207.558, 129.2187)
wait 5000
Task.UseMobilePhone($PLAYER_ACTOR, True)
wait 2000
Text.Print('KIF', 5000, 1)
wait 3500
Text.Print('KIF0', 5000, 1)
wait 5200
Task.UseMobilePhone($PLAYER_ACTOR, False)
wait 16000
World.SetCarDensityMultiplier(0.0)
Game.SwitchEmergencyServices(False)
Game.SwitchRandomTrains(False)
Game.SwitchAmbientPlanes(False)
Game.SwitchPoliceHelis(False)
Game.SetCreateRandomCops(False)
Game.SwitchCopsOnBikes(False)
World.SetPedDensityMultiplier(0.0)
Streaming.SetAreaVisible(18)
wait 5000
9@ = Char.Create(PedType.CivMale, 298, -1049.33, -1190.911, 129.0082)
Char.SetHeading(9@, 181.6304)
Char.SetHealth(9@, 15555)
Char.AddArmor(9@, 2000)
Char.SetSuffersCriticalHits(9@, False)
Char.SetOnlyDamagedByPlayer(9@, True)
Char.SetDrownsInWater(9@, False)
Char.SetUsesUpperbodyDamageAnimsOnly(9@, True)
Char.SetDecisionMaker(9@, 32)
Char.GiveMeleeAttack(9@, FightStyle.YesCombos, FightMoves.All)
Char.SetMoney(9@, 0)
Char.SetShootRate(9@, 80)
21@ = Particle.CreateOnCharWithDirection("FLAMETHROWER", 9@, 0.9, 0.1, 0, 0.0, 180, 0.0, False)
Particle.AttachToCharBone(21@, 9@, PedBone.Pelvis1)
Particle.Play(21@)
23@ = Particle.CreateOnCharWithDirection("PRT_COLLISIONSMOKE", 9@, 0.5, 0.0, 0, 0.0, 180, 0.0, False)
Particle.AttachToCharBone(23@, 9@, PedBone.Pelvis1)
Particle.Play(23@)
25@ = Particle.CreateOnCharWithDirection("WATER_SPEED", 9@, 0.5, 0.5, 0, 0.0, 180, 0.0, False)
Particle.AttachToCharBone(25@, 9@, PedBone.Pelvis1)
Particle.Play(25@)
Task.PlayAnimNonInterruptable(9@, "FLEE_LKAROUND_01", "PED", 4.0, True, False, False, False, -1)
Char.SetProofs(9@, True, True, True, True, False)
wait 2000
Hud.SwitchWidescreen(True)
wait 3000
Text.Print('KIF1', 5000, 1)
wait 5200
Text.Print('KIF2', 5000, 1)
wait 5200
Text.Print('KIF3', 5000, 1)
wait 5200
Hud.SwitchWidescreen(False)
goto @EPSILON_4212

:EPSILON_4205
goto @EPSILON_3549

:EPSILON_4212
15@, 16@, 17@ = Char.GetCoordinates(9@)
Fx.AddExplosion(15@, 16@, 17@, ExplosionType.Mine)
Fx.AddExplosionNoSound(15@, 16@, 17@, ExplosionType.Aircraft)
wait 6000
Task.FollowFootsteps(9@, $PLAYER_ACTOR)
Task.KillCharOnFoot(9@, $PLAYER_ACTOR)
8@ = Blip.AddForChar(9@)
Blip.SetAsFriendly(8@, 3)
TIMERB = 0

:EPSILON_4295
wait 0
if 
  Player.IsPlaying($PLAYER_CHAR)
goto_if_false @EPSILON_4709
if 
  not Char.IsDead(9@)
goto_if_false @EPSILON_4588
if 
  Char.LocateAnyMeansChar2D($PLAYER_ACTOR, 9@, 180.0, 180.0, False)
goto_if_false @EPSILON_4709
if 
  TIMERB > 10000
goto_if_false @EPSILON_4295
Hud.SwitchWidescreen(True)
wait 2000
Text.Print('KIF4', 2500, 1)
wait 1500
Text.Print('KIF5', 2500, 1)
wait 1500
Text.Print('KIF6', 2500, 1)
wait 2000
Text.Print('ELMX', 2800, 1)
wait 1000
15@, 16@, 17@ = Char.GetCoordinates(9@)
Fx.AddExplosion(15@, 16@, 17@, ExplosionType.Mine)
Fx.AddExplosionNoSound(15@, 16@, 17@, ExplosionType.Aircraft)
create_fx_system_on_char_with_direction "CAMFLASH" {char} 9@ {xOffset} 0.7 {yOffset} 0.0 {zOffset} 0 {xDirection} 0.0 {yDirection} 180 {zDirection} 0.0 {ignoreBoundingChecks} False {var_handle} TIMERA
Particle.AttachToCharBone(TIMERA, 9@, PedBone.Pelvis1)
Particle.Play(TIMERA)
TIMERB = 0
goto @EPSILON_4295

:EPSILON_4588
wait 0
if 
  Char.IsDead(9@)
goto_if_false @EPSILON_4702
wait 1000
Text.Print('KIF6', 2500, 1)
wait 3000
Text.Print('ELMX', 2800, 1)
wait 1500
15@, 16@, 17@ = Char.GetCoordinates(9@)
Fx.AddExplosion(15@, 16@, 17@, ExplosionType.Mine)
Fx.AddExplosionNoSound(15@, 16@, 17@, ExplosionType.Aircraft)
goto @EPSILON_4709

:EPSILON_4702
goto @EPSILON_4588

:EPSILON_4709
Streaming.SetAreaVisible(0)
Char.SetAreaVisible($PLAYER_ACTOR, 0)
Weather.Release
Particle.Kill(21@)
Particle.Kill(23@)
Particle.Kill(25@)
Particle.Kill(27@)
Particle.Kill(11@)
Char.MarkAsNoLongerNeeded(0@)
Char.MarkAsNoLongerNeeded(1@)
Char.MarkAsNoLongerNeeded(2@)
Char.MarkAsNoLongerNeeded(3@)
Char.MarkAsNoLongerNeeded(4@)
Char.MarkAsNoLongerNeeded(5@)
Char.MarkAsNoLongerNeeded(6@)
Char.MarkAsNoLongerNeeded(7@)
Char.MarkAsNoLongerNeeded(9@)
Blip.Remove(8@)
World.SetCarDensityMultiplier(1.0)
Game.SwitchEmergencyServices(True)
Game.SwitchRandomTrains(True)
Game.SwitchAmbientPlanes(True)
Game.SwitchPoliceHelis(True)
Game.SetCreateRandomCops(True)
Game.SwitchCopsOnBikes(True)
World.SetPedDensityMultiplier(1.0)
Hud.SwitchWidescreen(False)
terminate_this_custom_script 
